package com.codermn.demo5;

import java.io.IOException;

/**
 * @author jxau_scf
 * @date 2021/6/3 - 16:15
 */
public class MyInterFaceAImpl implements MyInterfaceA {

    public void methodC(){
        System.out.println("自己的方法！==>methodC");
    }

    @Override
    public void methodA() {
        System.out.println("实现接口方法！==>methodA");
    }

    public static void main(String[] args) {
        MyInterfaceA myInterfaceA = new MyInterFaceAImpl();
        myInterfaceA.methodA();
        myInterfaceA.methodB();


        System.out.println("==================");

        MyInterFaceAImpl myInterFaceAImpl = new MyInterFaceAImpl();
        myInterFaceAImpl.methodA();
        myInterFaceAImpl.methodB();
        myInterFaceAImpl.methodC();
    }
}
